package com.woniuxy.third.service.impl;

import com.woniuxy.third.entity.Chapter;
import com.woniuxy.third.mapper.ChapterMapper;
import com.woniuxy.third.service.ChapterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: yangtao
 * @date 2021/7/28 18:51
 * @Version 1.0
 */
@Service
public class ChapterServiceImpl implements ChapterService {
    @Resource
    private ChapterMapper chapterMapper;
    @Override
    public int addChapter(Chapter chapter) {
        return chapterMapper.addChapter(chapter);
    }

    @Override
    public List findChapterByCourseId(int courseId) {
        return chapterMapper.findChapterByCourseId(courseId);
    }
}
